﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Equipment.Business" %>
<%@ Import Namespace="Equipment.DataAccess" %>
<%  Dim un As Equipment.DataAccess.UserNotification = DirectCast(ViewData("currNotification"), Equipment.DataAccess.UserNotification)%>
<table>
    <tr>
        <td width="120px" rowspan="2">
            <img border="0" src="../../Content/img/asset-department.jpg" width="80" height="80">
        </td>
        <td width="130px">
            <label for="Id">
                Site:</label>
        </td>
        <td width="280px">
            <%= Html.DropDownList("Site")%>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td width="130px">
            <label for="Id">
                Department:</label>
        </td>
        <td width="280px">
            <div id="departmentContainer"><%= Html.DropDownList("Department")%></div>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td width="120px">
            &nbsp;
        </td>
        <td class="top">
            <label for="Id">
                Asset Type:</label>
        </td>
        <td class="top">
             <%= Html.DropDownList("AssetType", "---All---")%>
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <td>
        </td>
        <td>
            <% If un.NotificationTrigger = NotificationTrigger.WorkOrder_Overdue_ByDay Or un.NotificationTrigger = NotificationTrigger.WorkOrder_Overdue_ByHour Then%>
                <input type="submit" class="button left" value="<< Back" onclick="toOverdueStep(true); return false;" />
            <% Else%>
                <input type="submit" class="button left" value="<< Back" onclick="toTypeStep(true); return false;" />
            <% End If%>
        </td>
        <td>
            <input type="submit" class="button right" value="Next >>" onclick="toPreviewStep(false); return false;" />
        </td>
        <td>
        </td>
    </tr>
</table>
